com.supermap.ar.areffect
Class ARAnimationManager
- java.lang.Object
-
- com.supermap.ar.areffect.ARAnimationManager
-
public class ARAnimationManager extends java.lang.Object
Animation Manager
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description ARAnimationGroup
addAnimationGroup(java.lang.String groupName)
Adds an animation groupARAnimationGroup
getAnimationGroup(int index)
Gets animation groups according to indexesint
getAnimationGroupsCount()
Gets the size of animation collectionstatic ARAnimationManager
getInstance()
Gets the current AnimationManagervoid
pauseALL()
Pauses all animationsvoid
pauseAnimationGroups(int[] indexs)
Stops playing the animation group according to the index arrayvoid
playAll()
Plays all animationsvoid
playAnimationGroups(int[] indexs)
Starts to play the animation group according to the index arrayvoid
removeAnimationGroup(int index)
Removes animation groups according to indexesvoid
removeAnimationGroup(long id)
Removes animation groups according to idvoid
resumeALL()
Restores all animationsvoid
resumeAnimationGroups(int[] indexs)
Restores playing the animation group according to the index arrayvoid
stopALL()
Stops playing all animationsvoid
stopAnimationGroup(java.lang.String groupName)
Stop playing the animation group by indexing the array by namevoid
stopAnimationGroups(int[] indexs)
Stops playing the animation group according to the index array
-
-
-
Method Detail
-
getInstance
public static ARAnimationManager getInstance()
Gets the current AnimationManager- Returns:
- Instance object
-
addAnimationGroup
public ARAnimationGroup addAnimationGroup(java.lang.String groupName)
Adds an animation group- Parameters:
groupName
- the name of the animation group- Returns:
- the animation groups
-
getAnimationGroupsCount
public int getAnimationGroupsCount()
Gets the size of animation collection- Returns:
- Number
-
getAnimationGroup
public ARAnimationGroup getAnimationGroup(int index)
Gets animation groups according to indexes- Parameters:
index
- index- Returns:
- the animation groups
-
removeAnimationGroup
public void removeAnimationGroup(int index)
Removes animation groups according to indexes- Parameters:
index
- index
-
removeAnimationGroup
public void removeAnimationGroup(long id)
Removes animation groups according to id- Parameters:
id
- id of animation
-
playAll
public void playAll()
Plays all animations
-
playAnimationGroups
public void playAnimationGroups(int[] indexs)
Starts to play the animation group according to the index array- Parameters:
indexs
- index
-
pauseALL
public void pauseALL()
Pauses all animations
-
pauseAnimationGroups
public void pauseAnimationGroups(int[] indexs)
Stops playing the animation group according to the index array- Parameters:
indexs
- index
-
resumeALL
public void resumeALL()
Restores all animations
-
resumeAnimationGroups
public void resumeAnimationGroups(int[] indexs)
Restores playing the animation group according to the index array- Parameters:
indexs
- index
-
stopALL
public void stopALL()
Stops playing all animations
-
stopAnimationGroups
public void stopAnimationGroups(int[] indexs)
Stops playing the animation group according to the index array- Parameters:
indexs
- index
-
stopAnimationGroup
public void stopAnimationGroup(java.lang.String groupName)
Stop playing the animation group by indexing the array by name
-
-